<template>
	<scroll-view>
		<view class="flex text-center">
			<view class="flex-sub">
				<uni-card><button class="cu-btn  lg bg-blue round shadow-blur">激励广告1</button></uni-card>
			</view>
			<view class="flex-sub">
				<uni-card><button class="cu-btn lg bg-blue round shadow-blur">激励广告2</button></uni-card>
			</view>
		</view>
		<view class="flex text-center">
			<view class="flex-sub">
				<uni-card v-if="ad3"><button class="cu-btn lg bg-blue round shadow-blur">激励广告3</button></uni-card>
			</view>
			<view class="flex-sub">
				<uni-card><button @tap="showad3" class="cu-btn lg bg-blue round shadow-blur">激励广告4</button></uni-card>
			</view>
		</view>
	</scroll-view>
</template>

<script>
export default {
	data() {
		return {
			ad3:true
		};
	},
	onLoad() {
		this.getAuth()
	},
	methods: {
		getAuth(){
			this.ad3 = false
		},
		showad3(){
			if(this.ad3)
			{
				this.ad3 = false;
			}
			else
			{
				this.ad3 = true
			}
			
		}
	}
};
</script>

<style>
.container {
	padding: 20px;
	font-size: 14px;
	line-height: 24px;
}
</style>
